﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DesignPattern.DecoratorPattern
{
    public class Accessories:Decorator
    {
        public Accessories(Phone p):base(p)
        {

        }
        public override void Print()
        {
            base.Print();
            AddAccessories();
        }

        public void AddAccessories()
        {
            Console.WriteLine("手机增加挂件了");
        }
    }
}
